<!--
*Author：富行天下团队
 *
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Mall_ticket.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Mall_ticket.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '票信息',
                    name: 'Mall_ticket',
                    url: "/Tickets/",
                    sortName: "create_time"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [
                       {field:'id',title:'票id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ticket_code',title:'票编码',type:'string',width:120,align:'left'},
                       {field:'ticket_name',title:'名称',type:'string',width:180,align:'left'},
                       {field:'ticket_times',title:'次数',type:'int',width:90,require:true,align:'left'},
                       {field:'use_time',title:'核销时间',type:'bigint',width:90,align:'left'},
                       {field:'duration',title:'时长',type:'decimal',width:90,require:true,align:'left'},{field:'is_used',title:'是否核销',type:'sbyte',width:90,require:true,align:'left'},
                       {field:'parent_card_id',title:'父卡id',type:'string',width:180,align:'left'},
                       {field:'card_id',title:'卡id',type:'string',width:180,align:'left',sortable:true},
                       {field:'remain_duration',title:'剩余时长',type:'decimal',width:90,require:true,align:'left'},
                       {field:'remain_times',title:'剩余次数',type:'int',width:90,require:true,align:'left'},
                       {field:'sku_id',title:'sku_id',type:'string',width:90,align:'left'},
                       {field:'snowseason',title:'雪季',type:'string',width:220,require:true,align:'left'},
                       {field:'valid_begin_date',title:'验证开始时间',type:'bigint',width:90,require:true,align:'left'},
                       {field:'valid_end_date',title:'验证结束时间',type:'bigint',width:90,require:true,align:'left'},
                       {field:'attributes',title:'属性',type:'string',width:120,align:'left'},
                       {field:'gates',title:'门',type:'string',width:120,align:'left'},
                       {field:'member_id',title:'会员ID',type:'string',width:120,align:'left'},
                       {field:'order_id',title:'订单id',type:'string',width:120,align:'left'},
                       {field:'order_item',title:'订单项目',type:'string',width:120,align:'left'},
                       {field:'order_item_id',title:'订单项目id',type:'string',width:120,align:'left'},
                       {field:'timing_begin_time',title:'计时开始时间',type:'bigint',width:120,require:true,align:'left'},
                       {field:'timing_end_time',title:'计时结束时间',type:'bigint',width:120,require:true,align:'left'},
                       {field:'timing_method',title:'计时方法',type:'string',width:120,align:'left'},
                       {field:'timing_opportunity',title:'计时时机',type:'string',width:120,align:'left'},
                        {field:'category_id',title:'类别 ID',type:'string',width:120,align:'left'},
                       {field:'category_name',title:'类别名称',type:'string',width:120,align:'left'},
                       {field:'use_method',title:'使用方法',type:'string',width:120,align:'left'},
                       {field:'create_time',title:'创建时间',type:'bigint',width:90,require:true,align:'left'},
                       {field:'disable_time',title:'弃用时间',type:'bigint',width:90,align:'left'},
                       {field:'disabled',title:'弃用',type:'sbyte',width:90,require:true,align:'left'},
                       {field:'version',title:'版本',type:'int',width:120,require:true,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
